package com.snsoft.bean;

/**
 * 
 * @author 慎伟康
 * 
 * @date 2017年10月31日 下午2:44:26
 * 
 * @Description TODO
 *    用户部分信息pojo，用于存储在session
 */
public class UserInfo {
	
	/**
	 * 用户id
	 */
	private int userID;
	
	/**
	 * 用户名
	 */
	private String userName;
	
	/**
	 * 角色
	 */
	private int role;

	/**
	 * 有参构造器
	 * @param userID
	 * @param userName
	 * @param role
	 */
	public UserInfo(int userID, String userName, int role) {
		super();
		this.userID = userID;
		this.userName = userName;
		this.role = role;
	}
	
	public int getUserID() {
		return userID;
	}
	public void setUserID(int userID) {
		this.userID = userID;
	}

	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}

	public int getRole() {
		return role;
	}
	public void setRole(int role) {
		this.role = role;
	}

	@Override
	public String toString() {
		return "UserInfo [userID=" + userID + ", userName=" + userName
				+ ", role=" + role + "]";
	}
	
}
